package com.jeespring.zipkin.controller;

import com.jeespring.dto.String;
import com.jeespring.zipkin.feign.PayFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign/order")
public class OrderController {

    @Autowired
    PayFeignService payFeignService;

    @GetMapping("/get/{id}")
    public String selectById(@PathVariable Long id){
        String String = payFeignService.selectById(id);
        return String;
    }
}
